<div class="grid-wrap">
    <table data-id="grid"></table>
</div>
<div data-id="nsdb" style="padding: 5px; height: auto">
    <%--<shiro:hasPermission name="document:data:add">--%>
    <a data-href="${pageContext.request.contextPath}/app/api/document/toAdd" data-key="add" iconCls="fa fa-plus fa-lg" plain="true">新增</a>
    <%--</shiro:hasPermission>--%>
    <%--<shiro:hasPermission name="document:data:delete">--%>
    <a data-href="${pageContext.request.contextPath}/app/api/document/deleteDocuments" data-key="del" iconCls="fa fa-trash fa-lg fa-lg" plain="true">删除</a>
    <%--</shiro:hasPermission>--%>
    <a data-href="${pageContext.request.contextPath}/app/api/document/search" data-key="search" iconCls="fa fa-search fa-lg" plain="true">搜索</a>
    <a data-href="#" data-key="search_all" iconCls="fa fa-refresh fa-lg" plain="true">搜索全部</a>
</div>
<div data-id="document_tempate">
    <%--<shiro:hasPermission name='document:data:update'>--%>
    <a data-href="${pageContext.request.contextPath}/app/api/document/toUpdate" data-id="{{id}}" data-key="edit" iconCls="fa fa-edit fa-lg" plain="true">编辑</a>
    <%--</shiro:hasPermission>--%>
    <%--<shiro:hasPermission name='document:data:range'>--%>
    <a data-href="${pageContext.request.contextPath}/app/api/document/toRange" data-id="{{id}}" data-key="range" iconCls="fa fa-share-alt fa-lg" plain="true">设置访问权限</a>
    <%--</shiro:hasPermission>--%>
    <a data-href="${pageContext.request.contextPath}/app/api/document/publish" data-id="{{id}}" data-key="publish" iconCls="fa fa-bookmark fa-lg" plain="true">发布</a>
    <a data-href="${pageContext.request.contextPath}/app/api/document/detail" data-id="{{id}}"
       data-param="?id={{docNow.id}}" data-target="link"
       data-key="view" iconCls="fa fa-eye fa-lg" plain="true">查看详情</a>
</div>